import Request from '@/utils/request/request-util';

/**
 * API接口
 *
 * @author Lly
 * @date 2024/04/12 22:53
 */
export class CommonApi {

  /**
   * 登录接口
   *
   * @param {string} params.account 账号
   * @param {string} params.password 密码
   * @param {string} params.rememberMe 记住密码，true-记住，false-不记住
   * @param {string} params.tenantCode 租户编码
   * @author fengshuonan
   * @date 2021/4/1 14:34
   */
  static login(params) {
    return Request.post('/giftBookRedeem/login', params);
  }

/**
 * 获取礼品册信息
 */
static getGiftBookInfo(params) {
  return Request.get('/giftBook/getGiftBookAndProductDetail', params);
}

/**
 * 获取礼品商品详情 
 */
static getGiftProductDetail(params) {
  return Request.get('/giftBookProduct/customDetail', params);
}

/**
 * 获取登录信息 getData
 */
static getLoginInfo(params) {
  return Request.get('/giftBookRedeem/getLoginInfo', params);
}

/**
 * 下单 addOrder
 */
static addOrder(params) {
  return Request.post('/giftOrder/addOrder', params);
}

/**
 * 我的订单 /giftOrder/customFindList
 */
static getOrderList(params) {
  return Request.get('/giftOrder/customFindList', params);
}

}